import {httpGet, httpPost} from '@/utils/request'
import { loginParam, registerParam } from "./loginInterface";

// 登录
export const login = async (params: loginParam, config?: {}) => {
  await httpPost('user/login', params, config)
}

// 注册
export const register = async (params: registerParam, config?: {}) => {
    await httpPost('user/register', params, config)
}
